package com.itasura.scheduler;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalTime;

/**
 * @author sailor wang
 * @date 2018/11/11 10:10 PM
 * @description
 */
@Slf4j
@Component
public class Task1 {
    @Scheduled(fixedRate = 5000)
    public void reportCurrentTime() {
        log.info("固定评率5秒执行一次。。。。{}", LocalTime.now());
    }
}